<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div class="box" id="box">
        <input type="button" value="点击按钮" id="btn">

    </div>

    <script src="../jquery-1.12.4.js"></script>

    <script>
        $("#btn").on('click', function () {
            var e = e || window.event;
            e.stopPropagation() //非ie的浏览器阻止事件向上派发
            console.log(1)

        })
        $('#box').on('click', function () {
            console.log(1)
        })
    </script>
</body>

</html>